package cn.yqx.bankshop.user.service.impl;

import cn.yqx.bankshop.model.SysPermission;
import cn.yqx.bankshop.user.dao.SysPermissionMapper;
import cn.yqx.bankshop.user.service.SysPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SysPermissionServiceImpl implements SysPermissionService {
    @Autowired
    SysPermissionMapper sysPermissionMapper ;
    @Override
    public List<SysPermission> findByUserId(Long roleid) {

        return sysPermissionMapper.selectPermissionByRoleId(roleid);
    }
}
